<%@ Page Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="TempSupportBrokerPermission.aspx.vb" Inherits="Admin_TempSupportBrokerPermission" title="Admin - Temporary Support Broker Permission" %>
<%@ Register Src="SubNavControls/RolePermissionsSubNavControl.ascx" TagName="RolePermissionsSubNavControl"
    TagPrefix="uc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<uc1:RolePermissionsSubNavControl ID="RolePermissionsSubNavControl1" runat="server" />
     
     <table cellpadding="0" cellspacing="0" border="0">
       <tr><td width="20px" rowspan="3"></td><td colspan="3">
           <h1><a id="pagecontent">Admin - Temporary Support Broker Permission</a></h1>
            <span style="font-family:MS Sans Serif, Arial, Verdana, Sans-Serif; font-size:9px; font-weight:bold;">Temporarily grant a support broker to view another support broker's files</span></td>
       </tr>
     <tr><td class="adminSelectLabel">Select Support Broker Agency:</td><td><asp:DropDownList Id="AgencyDropDownList" runat="server"></asp:DropDownList></td><td><asp:Button Id="SubmitAgencyButton" runat="server" Text="Go" /></td></tr>
     <tr><td colspan="3"><asp:CheckBox ID="HideExpiredCheckBox" runat="server" cssClass="adminSelectLabel" Text="Hide Expired Assignments" /></td></tr>
     </table>
     
     <table>
     <tr><td>
     <cc2:ScrollingGridView ID="TempPermissionScrollingGridView" runat="server" AutoGenerateColumns="false" CellPadding="5" BorderColor="#21334B" BorderStyle="Solid" DataKeyNames="PermissionId"
                GridLines="Vertical" AllowSorting="True" CssClass="gridOffset" IsFixedColumn="true"  EmptyDataText="No Temporary Permissions have been added for this agency." EmptyDataRowStyle-CssClass="adminHeaderSelect">
          <AlternatingRowStyle BackColor="#E8ECF4" />
           <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
                <RowStyle CssClass="adminColumnStyle" />
         <Columns>
           <asp:TemplateField AccessibleHeaderText="Support Broker" HeaderText="Support Broker">
               <HeaderStyle Width="185px" />
               <ItemStyle Width="170px" />
               <ItemTemplate>
                   <%#Eval("SupportBrokerFullName") %>
               </ItemTemplate>
               <EditItemTemplate>
                    <asp:DropDownList ID="SupportBrokerDropDownList" runat="server">
                    </asp:DropDownList>
               </EditItemTemplate>
           </asp:TemplateField>
           <asp:TemplateField AccessibleHeaderText="Give Permission To" HeaderText="Give Permission To">
               <HeaderStyle Width="175px" />
               <ItemStyle Width="175px" />
               <ItemTemplate>
                   <%#Eval("PermissionedSupportBrokerFullName")%>
               </ItemTemplate>
               <EditItemTemplate>
                    <asp:DropDownList ID="PermissionedSupportBrokerDropDownList" runat="server">
                    </asp:DropDownList>
               </EditItemTemplate>
           </asp:TemplateField>
           <asp:TemplateField AccessibleHeaderText="Start Date" HeaderText="Start Date">
              <HeaderStyle Width="175px" />
               <ItemStyle Width="175px" />
               <ItemTemplate>
                  <%#Format(Eval("StartDate"), "MM/dd/yyyy")%>
               </ItemTemplate>
               <EditItemTemplate>
                    <asp:TextBox ID="StartDateTextBox" runat="server" Text='<%#Format(Eval("StartDate"), "MM/dd/yyyy")%>'></asp:TextBox>
               </EditItemTemplate>
           </asp:TemplateField>
           <asp:TemplateField AccessibleHeaderText="End Date" HeaderText="End Date">
           <HeaderStyle Width="175px" />
               <ItemStyle Width="175px" />
               <ItemTemplate>
                   <%#Format(Eval("EndDate"), "MM/dd/yyyy")%>
               </ItemTemplate>
               <EditItemTemplate>
                    <asp:TextBox ID="EndDateTextBox" runat="server" Text='<%#Format(Eval("EndDate"), "MM/dd/yyyy")%>'></asp:TextBox>
               </EditItemTemplate>
           </asp:TemplateField>
             <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" HeaderText="Action" AccessibleHeaderText="Action" HeaderStyle-Wrap="True">
                    <ItemStyle HorizontalAlign="Center" Wrap="true" Width="120px" />
                    <HeaderStyle Width="150px" />
                </asp:CommandField>
         </Columns></cc2:ScrollingGridView>
     </td></tr>
     <tr><td colspan="3">
                    <asp:Panel Id="AddPermissionPanel" runat="server" Visible="false" BorderWidth="1">
                    <table>
                        <tr><td colspan="2" class="gridCaptionStyle">Add a Temporary Permission for One Support Broker to view another Support Broker's Files. </td></tr>
                        <tr><td><asp:Label Id="SupportBrokerLabel" CssClass="label" runat="server">Support Broker:</asp:Label></td>
                        <td><asp:DropDownList Id="SupportBrokerDropDownList" runat="server" CssClass="form"></asp:DropDownList></td></tr>
                        <tr><td><asp:Label Id="PermissionLabel" CssClass="label" runat="server">Grant Permission To:</asp:Label></td>
                        <td><asp:DropDownList Id="PermissionSupportBrokerDropDownList" runat="server" CssClass="form"></asp:DropDownList></td></tr>
                         <tr><td><asp:Label Id="StartDateLabel" CssClass="label" runat="server">Start Date:</asp:Label></td>
                        <td><asp:TextBox ID="StartDateTextBox" runat="server" cssClass="form"></asp:TextBox></td></tr>
                        <tr><td><asp:Label Id="EndDateLabel" CssClass="label" runat="server">End Date:</asp:Label></td>
                        <td><asp:TextBox ID="EndDateTextBox" runat="server" cssClass="form"></asp:TextBox></td></tr>
                    </table>
                    </asp:Panel>
            </td></tr>
     </table>
     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderFixedAdmin" Runat="Server">
      <table><tr></tr></table>
       <asp:Button Id="AddButton" runat="server" Text="Add" />
       <asp:Button Id="SaveButton" runat="server" Text="Save" Visible="false" />
       <asp:Button Id="CancelButton" runat="server" Text="Cancel" Visible="false" />
</asp:Content>

